﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZR.Model.Models.ProductionControl
{
    [Table(Name = "cks_plcblockdb")]
    [SugarTable("cks_plcblockdb")]
    public class CksPlcBlockDb : BaseEntity {

        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Column(IsPrimary = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 关联Plc表Id
        /// </summary>
        public int PlcId { get; set; }

        /// <summary>
        /// 数据块
        /// </summary>
        public int BlockDb { get; set; }

        /// <summary>
        /// 数据块长度
        /// </summary>
        public int BlockLength { get; set; }

        
        /// <summary>
        /// 写入方:1 PC、2 PLC、3 混合
        /// </summary>
        public int WriteFrom { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; } = string.Empty;

        /// <summary>
        /// 模块 1 上位机 2 AGV
        /// </summary>
        public int Module { get; set; }

        /// <summary>
        /// 标记,
        /// </summary>
        public string Flag { get; set; } = "";

        /// <summary>
        /// 排序
        /// </summary>
        public int Sequence { get; set; }

    }

}
